<?php /* Smarty version Smarty-3.1.18, created on 2017-05-17 08:24:57
         compiled from "/data/www/mystery/protected/modules/webadmin/views/report/attach.tpl" */ ?>
<?php /*%%SmartyHeaderCode:8164446025551b05ac71623-23868406%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '75f2eb2c8effb0915e80ae2cddce568a53d36e19' => 
    array (
      0 => '/data/www/mystery/protected/modules/webadmin/views/report/attach.tpl',
      1 => 1494904926,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '8164446025551b05ac71623-23868406',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_5551b05acbffe3_94835933',
  'variables' => 
  array (
    'list' => 0,
    'val' => 0,
    'page' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5551b05acbffe3_94835933')) {function content_5551b05acbffe3_94835933($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/data/www/mystery/protected/extensions/Smarty/plugins/modifier.date_format.php';
?><?php echo $_smarty_tpl->getSubTemplate ("../common/iframe_header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<div class="pad_10" style="margin-top: 10px;">
    <div class="table-list">
        <table width="100%">
        <thead>
            <tr>
                    <th>文件名</th>
                    <th>上传时间</th>
                    <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
            <tr onMouseOver="this.className = 'tr2'" onMouseOut="this.className = 'tr1'" class="tr1" id="attach_<?php echo $_smarty_tpl->tpl_vars['val']->value['nra_id'];?>
">
                    <td><?php echo $_smarty_tpl->tpl_vars['val']->value['file_name'];?>
</td>
                    <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['val']->value['create_time'],"%Y-%m-%d");?>
</td>
                    <td><a href="<?php echo $_smarty_tpl->tpl_vars['val']->value['url'];?>
" target="_blank">下载</a> | <a href="javascript:;" onclick="del(<?php echo $_smarty_tpl->tpl_vars['val']->value['nra_id'];?>
);">删除</a></td>
            </tr>
            <?php } ?>
        </tbody>
        </table>

        <div style="float:right;"><?php echo $_smarty_tpl->tpl_vars['page']->value;?>
</div>
    </DIV>
</div>
<script type="text/javascript">
function del(nra_id){
    if (confirm('确认删除！')) {
        $.getJSON('/webadmin/report/DelAttach',{nra_id:nra_id},function(res){
            if (res.status==1) {
                $('#attach_'+nra_id).remove();
            }
            alert(res.note);
        });
    }
}
</script>
<?php echo $_smarty_tpl->getSubTemplate ("../common/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
